import React from 'react';
import { connect } from 'react-redux';
import ModifyName from '../components/My/ModifyName';

class ModifyNameContainer extends React.Component {
  render() {
    return (
      <ModifyName {...this.props} />
    );
  }
}

export default connect((state) => {
  const { isSuccess, errMsg } = state.EditProfileReducer;
  const { PerformanceData } = state.MysReducer;
  return {
    isSuccess,
    errMsg,
    PerformanceData,
  };
})(ModifyNameContainer);
